﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using ZLDC.Common.Estate;
using ZLDC.Topo.Model.Estate;

namespace ZLDC.Estate
{
    public partial class HousingFavorite : _PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {                                
                btnCompetences();   // 权限控制按钮
            }
        }

        // 权限控制按钮
        private void btnCompetences()
        {            
            //if (!ZLDC.Common.BaseUser.UserInfo.GetPopedom("添加举报"))            
            //    btnInfo.Visible = false;
            //if (!ZLDC.Common.BaseUser.UserInfo.GetPopedom("删除盘源"))
            //    btnDelete.Visible = false;
           
            //if (!ZLDC.Common.BaseUser.UserInfo.GetPopedom("推荐"))
            //    btnRecommend.Visible = false;
            //if (!ZLDC.Common.BaseUser.UserInfo.GetPopedom("收藏"))
            //    btnFavorite.Visible = false;
            //if (!ZLDC.Common.BaseUser.UserInfo.GetPopedom("封盘"))
            //    btnLock.Visible = false;

            //if (!ZLDC.Common.BaseUser.UserInfo.GetPopedom("盘源录入"))
            //    HLAddHousing.Visible = false;
            //if (!ZLDC.Common.BaseUser.UserInfo.GetPopedom("盘源导入"))
            //    HLHousingInput.Visible = false;

            if (ZLDC.Common.BaseUser.UserInfo.GetPopedom("修改盘源"))
                hCompetencesIsEdit.Value = "1";                       
        }


    }
}
